home *** CD-ROM | disk | FTP | other *** search
/ BBS Toolkit / BBS Toolkit.iso / doors_2 / tjlot101.zip / LOTTO.DOC < prev    next >
Text File  |  1992-04-07  |  13KB  |  311 lines

  1.  
  2.  
  3.                        ============================
  4.                            The T&J LOTTO Door!
  5.                        ============================
  6.                            (c)1992 T&J Software
  7.  
  8.                         PCBoard 14.x and GAP 4.x
  9.                            WILDCAT!, Spitfire
  10.                              QBBS, RBBS, RA
  11.                                   WWIV
  12.  
  13.                        VERSION 1.01     04/06/92
  14.  
  15.                                    By
  16.  
  17.                                Tom Wildoner
  18.                              397 West Broadway
  19.                               Jim Thorpe, PA
  20.                                   18229
  21.                             VOICE (717)325-9480
  22.                    *between 5:30 & 10:00 p.m. Eastern Time
  23.  
  24.                                   From
  25.  
  26.                                The T&J BBS
  27.                               (717)325-9481
  28.                         1200/2400/9600/19200/38400
  29.                                24 Hours/Day
  30.  
  31. LATEST VERSION:
  32. ===============
  33.  
  34. Please call the T&J BBS for the latest version of this program.
  35.  
  36. LEGALITIES:
  37. ===========
  38.  
  39. THIS SOFTWARE AND ACCOMPANYING MATERIALS ARE DISTRIBUTED "AS IS" WITHOUT
  40. WARRANTY, EXPRESS, IMPLIED OR STATUTORY, INCLUDING BUT NOT LIMITED TO ANY
  41. IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
  42. IN NO EVENT SHALL ANYONE INVOLVED WITH THE CREATION AND PRODUCTION OF THIS
  43. PRODUCT BE LIABLE FOR INDIRECT, SPECIAL, OR CONSEQUENTIAL DAMAGES, ARISING
  44. OUT OF ANY USE THEREOF OR BREACH OF ANY WARRANTY.
  45.  
  46. DISTRIBUTION:
  47. =============
  48.  
  49. You may make this file available for downloading from your BBS or you may
  50. upload it to any BBS of your choice, provided that you do not make any
  51. changes to the contents of the archive (ZIP file). The archive and its
  52. individual contents may not be used by any service that charges any money
  53. whatsoever, without the written permission of the author.
  54.  
  55. PROGRAM DESCRIPTION:
  56. ====================
  57.  
  58. The T&J LOTTO Door allows your users to select numbers on a type of
  59. lottery ticket. The number range is SysOp configurable along with the
  60. number or tickets a person may enter per day. As the SysOp, you can pick
  61. the prizes awarded for correctly getting 4, 5 or 6 digits correct.
  62.  
  63. The user gets a chance to pick 10 numbers per lottery ticket from the
  64. number range you specify. The LOTTO.EXE file (maintenance program) must
  65. be run each night. The LOTTO.EXE picks the winning numbers (it selects
  66. 6 numbers from the range you specify) and then reads each of the users
  67. lottery tickets and checks for winners. It will LOG the PRIZE WINNING
  68. tickets to a special SYSOP.LOG file for your records. It will also keep
  69. a listing of the last 7 days of winning tickets for the users to check.
  70.  
  71. The door also maintains a statitics file which will keep track of how many
  72. times the door was played, how many tickets (total) have been purchased,
  73. and the total winning tickets (tickets matching 4, 5, or 6 digits).
  74.  
  75. The user can check all winning lottery tickets from the previous night
  76. and a summation of all PRIZE WINNING tickets for the last week.
  77.  
  78. The LOTTO.EXE maintenance program will create a color and ASCII bulletin
  79. either stating that NO winning tickets were picked or that there were
  80. winning tickets picked.
  81.  
  82. FEATURES:
  83. =========
  84.            --- Desqview Aware.
  85.            --- COM1-4 support and non-standard IRQ's.
  86.            --- Colorful ANSI screens.
  87.            --- Chat function.
  88.            --- NO BRUN module needed for play.
  89.            --- BETA tested on five different boards.
  90.            --- Will return to BBS on dropped carrier.
  91.            --- Will TIMEOUT a player after 5 minutes of no activity.
  92.            --- Use of HOT KEYS while in the door.
  93.            --- Handy statistics presented to user on door usage.
  94.            --- Support BBS available.
  95.            --- Easily RESET the entire program.
  96.  
  97. LIST OF FILES:
  98. ==============
  99. 1DAY.DAT     ----->>> Summary of last nights winner(s).
  100. 2DAY.DAT     ----->>> Summary of 2 days ago winner(s).
  101. 3DAY.DAT     ----->>> Summary of 3 days ago winner(s).
  102. 4DAY.DAT     ----->>> Summary of 4 days ago winner(s).
  103. 5DAY.DAT     ----->>> Summary of 5 days ago winner(s).
  104. 6DAY.DAT     ----->>> Summary of 6 days ago winner(s).
  105. 7DAY.DAT     ----->>> Summary of 7 days ago winner(s).
  106. LOTTO7.DAT   ----->>> Summation of the above 7 files -- shown to the
  107.                       user while in the door.
  108. DOOR.SYS     -----\
  109. LOCAL.CFG    ------>> Files for trying th door locally.
  110. LOCAL.BAT    -----/
  111. LBULL.TXT    -----\
  112. LOTTOC.DAT   ------>> Files needed for bulletins.
  113. LOTTOM.DAT   -----/
  114. LNUM.DAT     ----->>> Data file that holds the computer picked winning
  115.                       numbers.
  116. LNUMW.DAT    ----->>> Summation of all winning tickets.
  117. LNUMW.TXT    ----->>> Summation of all winning tickets showing user
  118.                       name and how many numbers they got correct.
  119. LOT*.DAT     ----->>> Data files needed by program!
  120. LOTTO.EXE    ----->>> Nightly maintenance program.
  121. LOTTO.KEY    ----->>> DEMO KEY file -- once registered, you will receive
  122.                       a new LOTTO.KEY file.
  123. LOTTO.LOG    ----->>> LOG file showing who played the door and other
  124.                       information. Can be deleted as you see fit.
  125. LOTTOM1.DAT  ----->>> Data file needed by LOTTO.EXE.
  126. LPTODAY.DAT  ----->>> Data file showing who played the door today. Reset
  127.                       nightly with LOTTO.EXE
  128. LSTATS.DAT   ----->>> Door statistics.
  129. SPECIAL.USR  ----->>> See description below!
  130. SYSOP.CFG    ----->>> SysOp configuration file -- see details below.
  131. SYSOP.LOG    ----->>> Contains a listing of all the PRIZE WINNING
  132.                       lottery tickets.
  133. TJLOT101.EXE ----->>> MAIN DOOR PROGRAM! No BRUN modules needed -- self
  134.                       running.
  135. TJLOT.CFG    ----->>> Configuration file for TJLOT101.EXE
  136. LOTTO.DOC    ----->>> This file.
  137. RESET.EXE    ----->>> File for resetting the entire door!
  138.  
  139. INSTALLATION:
  140. =============
  141.  
  142. Your TJLOT.CFG file should contain ALL the items listed below (with your
  143. own data, of course). You can use your favorite TEXT EDITOR to make the
  144. changes also.
  145.  
  146.    C:\WILDCAT\CALLINFO.BBS ──┐  <- For Wildcat!
  147.    C:\PCB\PCBOARD.SYS        │  <- For PCBoard using PCBOARD.SYS only
  148.    C:\PCB\USERS              │  <- For PCBoard using USERS only
  149.    C:\BBS\DOOR.SYS           │  <- For Systems that support DOOR.SYS
  150.    C:\BBS\DORINFOx.DEF       │  <- For QBBS/RBBS/RA.  Replace x with Node #.
  151.    T&J Software BBS             <- Your BBS Name
  152.    Tom                          <- SysOp's First Name
  153.    Wildoner                     <- SysOp's Last Name
  154.  
  155. Your final CFG file should only have 4 lines.
  156.  
  157. Your SYSOP.CFG file should contain ALL the items listed below. You can use
  158. your text editor to edit the provided file.
  159.  
  160. First prize is a registered GAME PACK! A $50 value if you have a
  161. winning 6 number LOTTO ticket!
  162. If you get five digits, you'll get a free registered door of your
  163. choice! Pick the one you like best!
  164. And, if you get 4 digits, get a free registered copy of the OneRun
  165. program -- a $5 value!
  166. c:\wc30\bull\bull1.scr
  167. c:\wc30\bull\bull1.bbs
  168. 60
  169. 6
  170.  
  171. LINE 1&2: The prize that will be awarded for getting all 6 numbers
  172.           correct. If you only use one line, leave line 2 blank! Try
  173.           to limit each line to 70 characters. This text will be
  174.           centered in the door display, so don't worry about centering.
  175. LINE 3&4: The prize that will be awarded for getting 5 numbers correct.
  176.           follow the same guidance as above.
  177. LINE 5&6: The prize that will be awarded for getting 4 numbers correct.
  178.           follow the same guidance as above.
  179. LINE   7: PATH to your color bulletin.
  180. LINE   8: PATH to your ASCII bulletin.
  181. LINE   9: The range for your numbers (i.e. from 1 to ??). Try keeping
  182.           this number between 40 and 80 in intervals of 10 (40, 50, 60
  183.           70, or 80). What are the chances of winning you ask? See the
  184.           section titled CHANCES?!? listed below.
  185. LINE  10: How many tickets a person can enter in one day.
  186.  
  187. The file MUST have all 10 lines!
  188.  
  189. Next, make your DOORx.BAT file following the example provided:
  190.  
  191.     LIVECAT! USERS  (WILDCAT!3.0 ONLY!!!!!!)
  192.  
  193.     If you are using LIVECAT! to control your doors you will need to
  194. make one small change in your door.bat file.  LC! changes DOOR.SYS to
  195. DOOR.ORG when it shells out to the door.  You will need to add a line in
  196. your script  COPY DOOR.ORG DOOR.SYS.  If you don't do this, Dollarmania!
  197. just gives up and dies a very unhappy death. Add the above listed line
  198. right after the ECHO OFF line.
  199.  
  200. ECHO OFF
  201. COPY DOOR.ORG DOOR.SYS   --->For WC3.x and LIVECAT ONLY!!
  202. CD\WC30\DOOR\LOTTO
  203. TJLOT101 TJLOT.CFG
  204.  
  205. To run in LOCAL mode simply run the LOCAL.BAT file.
  206.  
  207.  
  208. MULTINODE SYSTEMS:
  209. ==================
  210.  
  211. This door is DesqView aware, when running in more than one node, be
  212. sure to supply a different configuration name for each node (your
  213. choice of name).
  214.  
  215.           EX: TJLOT1.CFG  TJLOT2.CFG
  216.  
  217. NOTE: T&J LOTTP supports COM 1-4 on the standard IRQ's - COM1/COM3 = IRQ4
  218.       and COM2/COM4 = IRQ3. If you wish to use a non-standard IRQ, add the IRQ
  219.       number after the configuration filename. Let's assume you COM1 and
  220.       IRQ5. The command line passed to your Door would be:
  221.         TJLOT101 TJLOT.CFG /5
  222.       The /5 tells T&J LOTTO to use IRQ5 rather than the standard IRQ4 that
  223.       is normally used with COM1. No /x parameter is needed for the standard
  224.       IRQ's.
  225.  
  226. CHANCES?!?
  227. ==========
  228.  
  229. How often do you want your users to win? I randomly generated 25,000 tickets
  230. for each possible range of number (i.e. 1 to 40, 1 to 50, 1 to 60, 1 to 70,
  231. and 1 to 80). The data will show how many tickets had 0 numbers picked, 1
  232. number picked, etc.... Here are the results I obtained:
  233.  
  234. Number Range from 1 to 30, tickets generated: 25000
  235. 0: 1635  1: 6466  2: 9183  3: 5831  4: 1681  5: 199  6: 6
  236.  
  237. Number Range from 1 to 40, tickets generated: 25000
  238. 0: 3775  1: 9270  2: 8169  3: 3127  4: 615  5: 44  6: 1
  239.  
  240. Number Range from 1 to 50, tickets generated: 25000
  241. 0: 6093  1: 10228  2: 6516  3: 1880  4: 266  5: 18  6: 0
  242.  
  243. Number Range from 1 to 60, tickets generated: 25000
  244. 0: 7807  1: 10694  2: 5197  3: 1172  4: 123  5: 8  6: 0
  245.  
  246. Number Range from 1 to 70, tickets generated: 25000
  247. 0: 9554  1: 10374  2: 4215  3: 779  4: 78  5: 1  6: 0
  248.  
  249. Number Range from 1 to 80, tickets generated: 25000
  250. 0: 10953  1: 10090  2: 3384  3: 538  4: 36  5: 0  6: 0
  251.  
  252. As you can see, the higher the number, the fewer 4, 5, and 6 digit
  253. winners are. This doesn't mean that a user on his first attempt will
  254. not hit the BIG ONE (6 digits) on his first attempt at picking numbers
  255. from the range of 1 to 80!
  256.  
  257. If you have a very nice prize setup for hitting 6 digits, then use a
  258. higher number!
  259.  
  260. THE SPECIAL.USR FILE:
  261. ====================
  262.  
  263. The SPECIAL.USR file is just what is implied. It's there for special
  264. users of your system. Simply enter their name followed by a comma and then
  265. enter how many tickets they can play per day! See the example SPECIAL.USR
  266. file supplied with the door.
  267.  
  268. The number of tickets listed after their name will over-ride the default
  269. number of tickets you have listed in your SYSOP.CFG file. One idea
  270. you can use is to make the prize for getting 4 digits correct is increasing
  271. the number of tickets that user can play per day! If they hit 4 digits, add
  272. there name to the SPECIAL.USR file and increase the number of tickets they
  273. can play!
  274.  
  275. RESETTING THE DOOR:
  276. ==================
  277.  
  278. A small program is included called RESET.EXE -- run this when you want
  279. to reset the game from scratch. You will have to make changes in your
  280. SYSOP.CFG file manually.
  281.  
  282. MAINTENANCE!:
  283. ============
  284.  
  285. You must run the LOTTO.EXE program as part of your nightly maintenance
  286. work for the door to operate properly! The maintenance routines for
  287. BBS's vary, so it's up to you to determine how to run this program as
  288. part of your maintenance.
  289.  
  290. FUTURE VERSIONS:
  291. ================
  292.  
  293. --->> Let me know what you would like to see!
  294.  
  295.  
  296. VERSION HISTORY:
  297. ===============
  298.  
  299. Version 1.00 ......... First release. 03/28/92
  300. Version 1.01 ......... Modified the computer generated ticket routines,
  301.                        no major problem but it needed to be fixed. 4-6-92
  302.  
  303. REGISTERING:
  304. ============
  305.  
  306. That's all there is to it! If you have any problems or questions
  307. please feel free to call the T&J BBS at (717)325-9481 and join the
  308. T&J Software Conference.
  309.  
  310. See the enclosed registration form for ordering!  (REGISTER.TXT)
  311.